<?php
define('IN_SCRIPT',1);
define('HESK_PATH','./');

/* Get all the required files and functions */
require(HESK_PATH . 'hesk_settings.inc.php');
require(HESK_PATH . 'inc/common.inc.php');
require(HESK_PATH . 'inc/database.inc.php');

hesk_session_start();

//session_register("usr_lgn");
unset($_SESSION['id_member']);
session_destroy();
hesk_process_messages($hesklang['logout_success'],$hesk_settings['site_url'].'?login=logout','SUCCESS');
?>